package com.zr.beijian.utils;

public class ResultVo {
    public static Result success(Object object){
        Result result = new Result();
        result.setStatus(true);
        result.setData(object);
        return result;
    }

    public static Result error(Integer errorCode,String message){
        Result result = new Result();
        result.setStatus(false);
        result.setErrorCode(errorCode);
        result.setMessage(message);
        return result;
    }
}
